Repository navigation
docs(adr-0055,skills-data): wording follow-ups from the writeRequiresMasterRead reviews - #34075
Conversation
…MasterRead reviews ADR-0055: - the 2026-09-07 "What both halves do now" Write bullet gains a 2026-11-14 note in place: a hop whose detail declares writeRequiresMasterRead asks read on its master and the walk ends there; - the 2026-11-07 status line gains the note its body line already carries: under the key, setting a master and emptying one each ask read; - "The invariant" says "every master-gate refusal" where it said "every refusal": the owner rule's refusal of a null-master row never said "requires edit access"; - the ruling quote carries its last sentence, byte for byte as ruling record 6880588685 gives it, and the English gloss covers it; - "What a refusal answers" says what a predicate write does for a master the caller cannot read: it selects none of that master's rows, judges no master for them, writes none of them and answers no refusal (readableRowsScopeForPredicateWrite, controlledByParentPredicateWriteMasters). skills/objectstack-data, rules/relationships.md: - setting a master and emptying one both ask read under writeRequiresMasterRead, and both ask edit under ownerMayEdit; - on an on-behalf-of update or delete the ownership floor binds for both users; - paid for in the same section: the ownerMayEdit bullet says "every other write, on-behalf-of included" where it listed the writes (the default rule above it and the bullet's own "only" carry the list). 16925 bytes before and after, 4232 tokens, ceiling row unmoved. evals/objects-fields-relationships.json, the writeRequiresMasterRead case only: must_not_contain gains the refused ownerMayEdit pair in both orders and the key written on the master_detail field. Claude-Session: https://claude.ai/code/session_01ADHkmSuNnnr3JQjtkn1a28 Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Inputs read: card #33432, its body and all four comments (triage 6884668843, unblock 6885442825, claim 6898254257, os-dev report 6898746382); PR #34075, its body, its four-file list and the net diff of the head against Check-runs on the head, read four times, the last after 18:11Z: 45 runs, 29 success, 16 skipped, 0 failed, none still running. ① Derived judgmentsNo accept-set and no public surface moves: the diff holds no schema, ADR-0055, five edits (lines 10, 141, 274, 287 and 298 on the head).
The two new
The file is 16925 bytes on Eval. A JSON compare of the head against ② Semver level
③ Boundary flags
④ Design judgment
Tried to break it by looking for an added sentence that states a wider or narrower rule than
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
Requested by Steve · project thread
Fixes #33432
Clause-②: no
Metadata-protocol: none
维护者速读
node scripts/check-skills-token-ratchet.mjs && pnpm check:adr-symbol-anchors && pnpm check:adr-index,预期全部 exit 0,relationships.md 显示 4232 / 4232。What changes
docs/adr/0055-master-detail-controlled-by-parent.md(review 6883816828, nits 1 to 5; every nit re-read on maine71ecc1b, none already settled, so none dropped). The 2026-11-15 notes from PR #33992 (#33696) are untouched.⚠️ Amended 2026-11-14 (#33250 / PR #33369)note: a hop that declareswriteRequiresMasterReadasks read and ends the walk (security-plugin-cbp-write-gate.ts#assertControlledByParentChainEditable), pointing to the 2026-11-14 amendment.scripts/adr-index.mjs --jsonoutput is byte-identical before and after (cmpexit 0): its status reader reads only the**Status**:line.masterGateRefusalUserCopyOfanswersundefinedfor it).multi: true) update or delete by a caller who cannot read the master selects none of that master's rows, judges no master for them and writes none of them, with no refusal, as on a detail that does not opt in. Verified by reading main:security-plugin-addressed-writes.ts#readableRowsScopeForPredicateWritenarrows the matched set to readable rows, andsecurity-plugin-cbp-write-gate.ts#controlledByParentPredicateWriteMastersjudges the masters of those rows only; the opt-in never touches the read side (zerowriteRequiresMasterReadhits in the read filter, addressed-writes and authz middleware). Worded per master, because one predicate can also select rows under masters the caller does read.skills/objectstack-data/rules/relationships.md(review 6883930925):ownerMayEdit; read underwriteRequiresMasterRead)" → "(both even underownerMayEdit; read for both underwriteRequiresMasterRead)": setting and emptying a master both ask read under the key.ownerMayEditbullet's list "insert, delete, predicate (multi: true) updates and on-behalf-of writes still need master edit" → "every other write, on-behalf-of included, still needs master edit". Surviving homes: the section's own default two lines above ("by default, every write needs edit on the master") with the bullet's "only"; themulti: truegloss lives inreferences/data-hooks.mdandrules/security.md. No re-wrap pays for anything.skills/objectstack-data/evals/objects-fields-relationships.json: thewriteRequiresMasterReadcase (found by content,id: 17) gains threemust_not_containstrings: both orders ofownerMayEdit: truebeside the key, and the key on themaster_detailfield (required: true, writeRequiresMasterRead). None occurs in the case's ownexpected_output; all fourmust_containstrings do. No other case changes (JSON compare against the base)..changeset/33432-cbp-write-opt-in-wording.md:@objectstack/skillspatch, carrying both declaration lines.Token readings (
ceil(utf8 bytes / 4),node scripts/check-skills-token-ratchet.mjs)rules/relationships.md(ceiling 4232)evals/objects-fields-relationships.json(not ratcheted)skills/objectstack-datapackageSKILL.mdThe +45 is the eval file alone.
Why
Authors and agents read ADR-0055 and the data skill to decide which grant a detail write asks. A stale bullet or an open-scoped parenthetical tells some readers that setting a master still asks edit under the opt-in, and they over-grant edit on the master to get a write through.
Acceptance notes
dispatch-gates --tiermakes the contract-review tier MANDATORY fordocs/adr/**andskills/**; the card thread is served below it, so the text was authored and committed by an isolated os-dev subagent pinned to that tier on this branch. The thread merged main, ran the gates, opened this PR and wrote the report.expected_outputstill says the floor "binds predicate and on-behalf-of updates and deletes" (true, not refined to "both users"); left, since onlymust_not_containwas in scope.Verification
Head
e84ff32f(basefb79d47c+ merge of maine71ecc1b).node scripts/pm/dispatch-gates.mjs --commandsderived 51 commands; each run with its exit captured before any pipe, then reconciled with--ran.Gate readings
Run on head
e84ff32f, 51/51 exit 0.check:dual-build-cjs-loadsfirst answered exit 3 (PREREQUISITE NOT MET: needs every package dist); afterturbo run build --filter='./packages/**'underos-verify-lock(VERDICT command-exit 0, 5m47s) it answered exit 0.--ranreconciliation: "51 derived famil(ies) accounted for — 51 run, 0 NOT-MEASURED (a DERIVED zero)". Also exit 0 on the authored headc5cc5319:pnpm check:skill-eval-tokens(ui),pnpm --filter @objectstack/spec check:skill-docs,check:skill-refs,check:skill-examples,node scripts/adr-index.mjs --check,check-skills-token-ratchet.mjs --self-test(104 cases).Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (no code changed;pnpm lintwas not run locally, CI runs it)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code